if __name__ == '__main__':
    fo = open("poetry.txt", "r",encoding="utf-8")
    print(fo.read())
    # 读取指针已经到了文件末尾
    print("读取指针已经到了文件末尾")
    print(fo.read())
    fo.seek(0)
    print(fo.readline())
    print(fo.readlines())
    fo.close()